package org.hzero.exam.infra.repository.impl;

import org.hzero.exam.domain.entity.HodrCustomer;
import org.hzero.exam.domain.repository.HodrCompanyRepository;
import org.hzero.exam.domain.repository.HodrCustomerRepository;
import org.hzero.exam.infra.mapper.HodrCustomerMapper;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/8/5
 */
@Component
public class HodrCustomerRepositoryImpl extends BaseRepositoryImpl<HodrCustomer> implements HodrCustomerRepository {
    @Autowired
    private HodrCustomerMapper customerMapper;
    @Override
    public List<HodrCustomer> selectByCustomerNumberAndName(String customerNumber, String customerName) {
        return customerMapper.selectByCustomerNumberAndName(customerNumber,customerName);
    }

    @Override
    public HodrCustomer selectByCustomerNumber(String customerNumber) {
        return customerMapper.selectByCustomerNumber(customerNumber);
    }
}
